//
//  TranstionModel.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/8/23.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "TranstionModel.h"

@implementation TranstionModel

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        self.alreadySoldCount = [dict[@"alreadySoldCount"] integerValue];
        self.counterFeeRate = dict[@"counterFeeRate"];
        self.estimateIncomeRate = dict[@"estimateIncomeRate"];
        self.ID = [dict[@"id"] integerValue];
        self.incomeRate = dict[@"incomeRate"];
        self.indexActivityPosition = [dict[@"indexActivityPosition"] integerValue];
        self.isInIndexActivity = [dict[@"isInIndexActivity"] integerValue];
        self.productName = dict[@"productName"];
        self.price = [dict[@"price"] floatValue];
        self.productNo = dict[@"productNo"];
        self.productParams = dict[@"productParams"];
        self.stageCount = [dict[@"stageCount"] integerValue];
        self.status = [dict[@"status"] integerValue];
        self.stockCount = [dict[@"stockCount"] integerValue];
        self.thumbnailUrl = dict[@"thumbnailUrl"];
        self.tradeFreeRate = dict[@"tradeFreeRate"];
        
        self.productCount = [dict[@"productCount"] integerValue];
        self.residualStock = [dict[@"residualStock"] integerValue];
        self.surplusDays = [dict[@"surplusDays"] integerValue];
    }
    return self;
}

+ (instancetype)objectWithDict:(NSDictionary *)dict
{
    return [[TranstionModel alloc]initWithDict:dict];
}

@end
